import java.util.Scanner;

public class Test9 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Ring r1 = new Ring();
        int inner = sc.nextInt();
        int outer = sc.nextInt();
        r1.setInnerRadius(inner);
        r1.setOuterRadius(outer);
        System.out.println(r1.getArea());
        Ring r2 = new Ring();
        System.out.println(r2.getArea());
    }
}
class Ring{
    private int innerRadius;
    private int outerRadius;

    public Ring() {
        this.innerRadius = 1;
        this.outerRadius = 3;
        System.out.println("constructor");
    }

    public Ring(int innerRadius, int outerRadius) {
        this.innerRadius = innerRadius;
        this.outerRadius = outerRadius;
        System.out.println("constructor");
    }

    public int getInnerRadius() {
        return innerRadius;
    }

    public void setInnerRadius(int innerRadius) {
        this.innerRadius = innerRadius;
    }

    public int getOuterRadius() {
        return outerRadius;
    }

    public void setOuterRadius(int outerRadius) {
        this.outerRadius = outerRadius;
    }
    public int getArea(){
        double s1 = Math.PI * outerRadius * outerRadius;
        double s2 = Math.PI * innerRadius * innerRadius;
        return (int)(s1 - s2);
    }
}